package org.boulderfoodrescue.webapp.server;

import com.google.appengine.api.datastore.Entity;

public class CommonDBOps {
	public static Object safeProperty(Entity entity, String propertyName, Object defaultValue){
		if(entity.hasProperty(propertyName))
			return entity.getProperty(propertyName);
		return defaultValue;
	}
}
